<?php /* Smarty version 2.6.22, created on 2009-05-25 16:19:05
         compiled from myAdmin/tableAddRow.sm */ ?>
<table cellspacing="0" cellpadding="0" class="add">
  <tr><td colspan="2" id="head_td">&nbsp; <?php if ($_SESSION['key_field_value']): ?><span style="color: blue; font-size: 13px;">Следующий шаг заполнения таблицы <b><?php echo $_SESSION['key_table_name']; ?>
</b></span><?php endif; ?></td></tr>
  <tr>
    <td colspan="2" align="center"><b><?php echo $this->_tpl_vars['lg']['A_add']; ?>
 <?php echo $this->_tpl_vars['lg']['A_rowContent']; ?>
</b></td>
  </tr>
    <?php $_from = $this->_tpl_vars['aliasAll']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
?>
    <?php if ($_SESSION['key_field_value'] && $this->_tpl_vars['item']['radio'] == 1): ?>
    <input type="hidden" id="<?php echo $this->_tpl_vars['item']['id']; ?>
" value="<?php echo $_SESSION['key_field_value']; ?>
" />
    <?php else: ?>
      <tr>
        <th width="20%"><?php if ($this->_tpl_vars['item']['type'] != 'extra_table'): ?><?php echo $this->_tpl_vars['item']['alias']; ?>
<?php else: ?><?php $this->assign('has_extra', true); ?><?php endif; ?></th>
        <td><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "bsm/switcher.sm", 'smarty_include_vars' => array('id' => $this->_tpl_vars['item']['id'],'dependon' => $this->_tpl_vars['item']['dependon'],'depend' => $this->_tpl_vars['item']['depend'],'type' => $this->_tpl_vars['item']['type'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
      </tr>
     <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?>
    <?php if (! $this->_tpl_vars['has_extra']): ?><tr>
    <td colspan="2" align="center"><input type="checkbox" id='addmore' /> <b><?php echo $this->_tpl_vars['lg']['A_addOneMore']; ?>
</b></td>
  </tr><?php endif; ?>
  <tr>
    <td colspan="2" align="center"><input type="button"
    onclick=ajaz("page=newValue&<?php echo $this->_tpl_vars['fields']; ?>
table=<?php echo $this->_tpl_vars['table_name']; ?>
&addmore="+get_('addmore','c')) value="<?php if ($this->_tpl_vars['has_extra']): ?>Перейти к следующему шагу<?php else: ?><?php echo $this->_tpl_vars['lg']['A_add']; ?>
<?php endif; ?>" />
    <?php if ($_SESSION['key_field_value']): ?>
	<input type="button" onclick=ajaz("page=destroy_extra_session&table=<?php echo $this->_tpl_vars['table_name']; ?>
") value="Завершить заполнение" />
	<?php endif; ?>
    </td>
  </tr>
</table>